package com.yupi.yuoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName comments
 */
@TableName(value ="comments")
@Data
public class Comments {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 评论者ID
     */
    private Long user_id;

    /**
     * 目标类型: 1文章 2沸点
     */
    private Integer target_type;

    /**
     * 目标ID
     */
    private Long target_id;

    /**
     * 父评论ID
     */
    private Long parent_id;

    /**
     * 回复的评论ID
     */
    private Long reply_to_id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 点赞数
     */
    private Integer like_count;

    /**
     * 回复数
     */
    private Integer reply_count;

    /**
     * 状态: 1正常 2删除
     */
    private Integer status;

    /**
     * 
     */
    private Date created_at;

    /**
     * 
     */
    private Date updated_at;
}